package com.ruoyi.books.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.books.mapper.BooksLiteraryContentMapper;
import com.ruoyi.books.domain.BooksLiteraryContent;
import com.ruoyi.books.service.IBooksLiteraryContentService;

/**
 * 非遗文学内容汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-02
 */
@Service
public class BooksLiteraryContentServiceImpl implements IBooksLiteraryContentService 
{
    @Autowired
    private BooksLiteraryContentMapper booksLiteraryContentMapper;

    /**
     * 查询非遗文学内容汇总
     * 
     * @param literaryContentId 非遗文学内容汇总主键
     * @return 非遗文学内容汇总
     */
    @Override
    public BooksLiteraryContent selectBooksLiteraryContentByLiteraryContentId(Long literaryContentId)
    {
        return booksLiteraryContentMapper.selectBooksLiteraryContentByLiteraryContentId(literaryContentId);
    }

    /**
     * 查询非遗文学内容汇总列表
     * 
     * @param booksLiteraryContent 非遗文学内容汇总
     * @return 非遗文学内容汇总
     */
    @Override
    public List<BooksLiteraryContent> selectBooksLiteraryContentList(BooksLiteraryContent booksLiteraryContent)
    {
        return booksLiteraryContentMapper.selectBooksLiteraryContentList(booksLiteraryContent);
    }

    /**
     * 新增非遗文学内容汇总
     * 
     * @param booksLiteraryContent 非遗文学内容汇总
     * @return 结果
     */
    @Override
    public int insertBooksLiteraryContent(BooksLiteraryContent booksLiteraryContent)
    {
        return booksLiteraryContentMapper.insertBooksLiteraryContent(booksLiteraryContent);
    }

    /**
     * 修改非遗文学内容汇总
     * 
     * @param booksLiteraryContent 非遗文学内容汇总
     * @return 结果
     */
    @Override
    public int updateBooksLiteraryContent(BooksLiteraryContent booksLiteraryContent)
    {
        return booksLiteraryContentMapper.updateBooksLiteraryContent(booksLiteraryContent);
    }

    /**
     * 批量删除非遗文学内容汇总
     * 
     * @param literaryContentIds 需要删除的非遗文学内容汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksLiteraryContentByLiteraryContentIds(Long[] literaryContentIds)
    {
        return booksLiteraryContentMapper.deleteBooksLiteraryContentByLiteraryContentIds(literaryContentIds);
    }

    /**
     * 删除非遗文学内容汇总信息
     * 
     * @param literaryContentId 非遗文学内容汇总主键
     * @return 结果
     */
    @Override
    public int deleteBooksLiteraryContentByLiteraryContentId(Long literaryContentId)
    {
        return booksLiteraryContentMapper.deleteBooksLiteraryContentByLiteraryContentId(literaryContentId);
    }
}
